package com.bw.merchant.adapter

import android.widget.TextView
import com.bw.merchant.R
import com.bw.merchant.entity.RecordingEntityItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class ApproveAdapter: BaseQuickAdapter<RecordingEntityItem, BaseViewHolder>(R.layout.item_approve) {
    override fun convert(holder: BaseViewHolder, item: RecordingEntityItem) {
        holder.getView<TextView>(R.id.approve_number).setText(item.applicationNumber)
        holder.getView<TextView>(R.id.approve_time).setText(item.entryTime)
        if (item.status == "新建"){
            holder.getView<TextView>(R.id.status).setText("未确认")
        }else{
            holder.getView<TextView>(R.id.status).setText("已确认")
        }
    }
}